<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎光临</title>
</head>
<body>
Welcome to Spring MVC!

<a href="${pageContext.request.contextPath}/req-param-test?query=queryval&form=queryform&multipart=querymultipart">RequestParam测试-url查询参数测试</a>

普通表单测试RequestParam:
<form method="post" action="${pageContext.request.contextPath}/req-param-test" enctype="application/x-www-form-urlencoded">
    query:<input type="text" name="query">
    form:<input type="text" name="form">
    multipart:<input type="text" name="multipart">
    <input type="submit">
</form>

multipart表单测试RequestParam:
<form method="post" action="${pageContext.request.contextPath}/req-param-test" enctype="multipart/form-data">
    query:<input type="text" name="query">
    form:<input type="text" name="form">
    multipart:<input type="text" name="multipart">
    <input type="submit">
</form>

测试InitBinder注解
<a href="${pageContext.request.contextPath}/test-init-binder?date=1725859569229">测试</a>

<br/>
测试InitBinder注解2（我想知道在Controller类中通过@InitBinder注册的PropertyEditor只影响当前类中的请求还是会影响所有Controller的请求）
<a href="${pageContext.request.contextPath}/test-init-binder2?date=1725859569229">测试</a>

<br/>
测试被@ControllerAdvice标注的类中使用@InitBinder注解注册的属性编辑器是否全局有效
<a href="${pageContext.request.contextPath}/test-controller-advice-and-init-binder?dateTime=2024-09-09 13:49:00">测试</a>

<br>
测试ResponseStatus注解
<a href="${pageContext.request.contextPath}/response-status-test">测试</a>
</body>
</html>